package com.mac.sys.generator;

/**
 * 运行生成的main
 * @author liangjilong
 *
 */
public class DoMain {

    public static void main(String[] args) {
        try {
            CodeGenerator entityCreater = new CodeGenerator();
            //List<String> tables = entityCreater.getTables();

            String table = "test";
            String packageName = "com.mac.sskj";
            entityCreater.createEntityClass(table, packageName);
            entityCreater.createMappingXmlClass(table, packageName);
            entityCreater.createDaoClass(table, packageName);
            entityCreater.createServiceClass(table, packageName);
            entityCreater.createServiceImplClass(table, packageName);
            entityCreater.createControllerClass(table, packageName);
//            entityCreater.createHtmlView(table, packageName);

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}

